package com.wanmait.community.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wanmait.community.entity.Unit;

import java.util.List;

public interface UnitService extends IService<Unit>{
    Unit selectUnitNameAndBuildingIdByUnit(Unit unit);
    List<Unit> findAll();
    List<Unit> findUnitByBuildingId(Integer buildingId);

    void deleteUnitByBuildingId(Integer buildingId);

}
